const fs = require('fs')
const path = require('path')
const pathResolve = (dir) => path.resolve(__dirname, dir)

function init() {
  console.log('start init project')

  let configPath = pathResolve('./../../dev-config-local.js')
  let exist = fs.existsSync(configPath)
  if (!exist) {
    fs.copyFileSync(pathResolve('./dev-config-local.js'), configPath)
  }
}

init()
